<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<div class="content mar_20">
			<table border="0" class="car_tab"
				style="width:1200px; margin-bottom:50px;" cellspacing="0"
				cellpadding="0">
				<tr>
					<td class="car_th" width="20%">商品名称</td>
					<td class="car_th" width="20%">介绍</td>
					<td class="car_th" width="10%">购买数量</td>
					<td class="car_th" width="10%">单价</td>
					<td class="car_th" width="20%">小计</td>
					<td class="car_th" width="20%">操作</td>
				</tr>
				<c:forEach items="${sessionScope.cart.items }" var="p">
					<tr>
						<td>
							<div class="c_s_img">
								<img src="../statics/productImg/${p.product.fileName }"
									width="73" height="73" />
							</div> ${p.product.name }</td>
						<td align="center">${p.product.description }</td>
						<td align="center">
							<div class="c_num">
								<input type="button" value="" onclick="subQuantity(jQuery(this),'${p.product.id}');"
									class="car_btn_1" /> <input type="text" value="${p.quantity}"
									name="" class="car_ipt"  readonly="readonly"/> <input type="button" value=""
									onclick="addQuantity(jQuery(this),'${p.product.id}','${p.product.stock}');"
									class="car_btn_2" />
							</div>
						</td>
						<td align="center" style="color:#ff4e00;" class="priceProduct">
							${p.product.price }</td>
						<td align="center" class="prices">${p.cost }</td>
						<td align="center"><a onclick="del('${p.product.id}')">删除</a>&nbsp;
							&nbsp;<a href="#">加入收藏</a></td>
					</tr>
				</c:forEach>
				<tr height="70">
					<td colspan="6"
						style="font-family:'Microsoft YaHei'; border-bottom:0;"><label
						class="r_rad"><input type="checkbox" name="clear"
							checked="checked" /> </label><label class="r_txt">清空购物车</label> <span
						class="fr">商品总价：<b style="font-size:22px; color:#ff4e00;"
							class="sumPrice">￥${sessionScope.cart.sum }</b> </span>
					</td>
				</tr>
				<tr valign="top" height="150">
					<td colspan="6" align="right"><a href="Index.jsp"> <!-- 继续购物 -->
							<img src="../statics/images/buy1.gif" /> </a>&nbsp; &nbsp; <a
						href="CartServlet?action=address&id=${LoginUser.id }"> <img src="../statics/images/buy2.gif" />
					</a></td>
				</tr>
			</table>

		</div>